<div class="menu">
<?php  echo $this->Form->menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
</div>
<div class="sesiones index">
	<div align="center"><?php echo $this->Html->image('sesiones_titulo.png', array('alt'=> __('Sesion', true), 'border' => '0'));?></div>

	<?php echo $this->Html->link($this->Html->image('add_sesion.png', array('alt'=> __('Nueva Sesi&oacute;n', true), 'border' => '0')),
												'../sesiones/add/',array('escape' => false));?>
	<table class="tabla_formulario" cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('nombre');?></th>
			<th><?php echo $this->Paginator->sort('tema_id');?></th>
			<th><?php echo $this->Paginator->sort('proyecto_id');?></th>
			<th><?php echo $this->Paginator->sort('Unidad','Unidade.id');?></th>
			<th><?php echo $this->Paginator->sort('Cartilla','Cartilla.id');?></th>
			<th><?php echo $this->Paginator->sort('Modulo','Modulo.id');?></th>
			<th><?php echo $this->Paginator->sort('Area','Area.id');?></th>
			<th class="actions"></th>
	</tr>
	
	<?php
		$i = 0;
		foreach ($sesiones as $sesione):
	  	$class = null;
	  	if ($i++ % 2 == 0)
	  	{
		  $class = ' class="altrow"';
	  	}
	?>
	<tr<?php echo $class;?>>
	  <td><?php echo $sesione['Sesione']['nombre']; ?>&nbsp;</td>
	  <td><?php echo $sesione['Tema']['nombre']; ?></td>
	  <td><?php echo $sesione['proyecto']; ?></td>
	  <td><?php echo $sesione['unidad']; ?></td>
	  <td><?php echo $sesione['cartilla']; ?></td>
	  <td><?php echo $sesione['modulo']; ?></td>
	  <td><?php echo $sesione['area']; ?></td>
	  
      <td class="actions">
			<?php echo $this->Html->link(__('Ver', true), array('action' => 'view', $sesione['Sesione']['id'])); ?>
			<?php echo $this->Html->link(__('Editar', true), array('action' => 'edit', $sesione['Sesione']['id'])); ?>
			<?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $sesione['Sesione']['id']), null, sprintf(__('Desea eliminar la sesion %s?', true), $sesione['Sesione']['nombre'])); ?>
		</td>
	</tr>
	
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('P&aacute;gina %page% de %pages%, montrando %current% registros de %count% en total, empezando en %start%, terminando en %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
